1. /* slmlspls.cpp by K.Tsuru */
  2. // function ID = 233 DRADIX
  3. /*************************************************************
  4. SLong class
  5. It adds a positive short implemented for the increment operator.
  6. The statement
  7. return (*this = *this + a);
  8. has a large overhead, because it calls a constructor SLong(a).
  9. **************************************************************/
  10. #ifndef SN_H
  11. #include "sn.h"
  12. #endif
  13. void SLong::LsPlus(fType a){
  14. if(!a) return;
  15. if(Sign(233) < 0){ // x + a = -(|x| -a)
  16. SetSign(1); LsMinus(a); SetSign(-1);
  17. return;
  18. }
  19. LsAdd(a);
  20. }

slmlspls.cpp : last modifiled at 2017/03/13 14:32:01(584 bytes)
created at 2017/10/07 10:26:49
The creation time of this html file is 2017/11/09 14:52:03 (Thu Nov 09 14:52:03 2017).